<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

        <table width="100%" cellspacing="1" cellpadding="4" border="0">
            <tbody>
            <tr class="td_title">
                <td colspan="2"> <p class="note">Fields with <span class="required">*</span> are required.</p> </td></tr>
            <tr bgcolor="#FFFFFF">
                <td width="15%" class="td_th"><?php echo $form->labelEx($model,'admin_name'); ?></td>
                <td><?php echo $form->textField($model,'admin_name',array('size'=>60,'maxlength'=>100)); ?></td>
                <?php echo $form->error($model,'admin_name'); ?>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td class="td_th"><?php echo $form->labelEx($model,'username'); ?></td>
                <td>
                    <?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>100)); ?>
                    <span> <?php echo $form->error($model,'username'); ?> </span>
                </td>

            </tr>

            <tr bgcolor="#FFFFFF">
                <td class="td_th"><?php echo $form->labelEx($model,'email'); ?></td>
                <td>
                    <?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>100)); ?>
                    <?php echo $form->error($model,'email'); ?>
                </td>

            </tr>

            <tr bgcolor="#FFFFFF">
                <td class="td_th"><?php echo $form->labelEx($model,'password'); ?></td>
                <td>
                    <?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>100,'value' =>'')); ?>
                    <?php echo $form->error($model,'password'); ?>
                </td>

            </tr>

            <tr bgcolor="#FFFFFF">
                <td colspan="2" class="submit"><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?></td>
            </tr>
            </tbody>
        </table>
        <br>

<?php $this->endWidget(); ?>

</div><!-- form -->